package com.qiudaozhang.loveblog.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * @author 邱道长
 * 2019/11/14
 */
@Document
@Setter
@Getter
@ToString(exclude = {"book"})
public class Chapter implements Serializable{


    private static final long serialVersionUID = 1996551271813873511L;
    /**
     * 章节的标题
     */
    private String title;

    /**
     * 章节内容
     */
    private String content;

    /**
     * 章节序号，用于重新定位顺序
     */
    private Integer order;
    private Book book;


}
